<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>我的收藏</title>
		<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta name="format-detection" content="telephone=no">
		<link rel="stylesheet" type="text/css" href="../../css/mui.min.css" />
		<link rel="stylesheet" type="text/css" href="../../css/app.css" />
		<link rel="stylesheet" type="text/css" href="../../css/utils.css" />
		<link rel="stylesheet" href="../../css/simple-line-icons.css">
		<link rel="stylesheet" href="../../css/mui-ext.css">
	</head>
	<body>
		<div class="mui-content">
			<div id="rfccollectionlst" class="mui-scroll-wrapper" style="height: 92%; top: 1px;">
				<div class="mui-scroll">
					<div id="dvcollectionlst" style="">
						<!--<div style="margin: 10px 20px 10px 20px;">
							<div style="display: flex;">
								<span style="display: block; width: 15%;">
									<img src="../../img/index/myicon_03.png" style="width: 40px;"/>
								</span>
								<span style="width: 85%; display: block; margin-top: 7px; margin-left: 10px;">
									<span style="display: block; font-size: 13px; color: #909090; float: left;">
										小辣椒
									</span>
									<span style="display: block; float: right; margin-right: 10px; color: #909090; font-size: 11px;">
										2017-01-11
									</span>
								</span>
							</div>
							<div style="display: flex; margin-top: 9px;">
								<span style="display: block;">
									<img src="../../img/budsring/tu2_05.png" style="width: 60px;" />
								</span>
								<span style="display: block; color: #616161; font-size: 15px; margin-left: 18px;">
									收藏文章标题
								</span>
							</div>
						</div>
						<hr style="width: 100%; height: 6px; background-color: #e6e6e6;" />-->
						
					</div>
				</div>
			</div>
		</div>
	</body>
	<script src="../../js/mui.min.js"></script>
	<script src="../../js/bus/utils.js"></script>
	<script src="../../js/bus/request.js"></script>
	<script>
		var $currpage = 0;
		mui.init({
			pullRefresh: {
				container: "#rfccollectionlst",
				up: {
					height: 10,
					auto: true,
					deceleration: 0.0006 ,
					contentrefresh : "加载中...",
					contentnomore:'没有更多数据了',
					callback: loadCollectionLstDat
				}
			}
		});
		
		function loadCollectionLstDat(){
			getCollectionLst(8, $currpage);
		}
		
		function getCollectionLst($size, $page){
			$currpage ++;
			if($currpage > 1){
				mui("#rfccollectionlst").pullRefresh().endPullupToRefresh(true);
			} else {
				var $collDoc = document.getElementById("dvcollectionlst");
				for(var i = 0; i < 5; i ++){
					var $collDiv = document.createElement("div");
					$collDiv.innerHTML = collectionLstTem(null, i);
					$collDoc.appendChild($collDiv);
				}
				mui("#rfccollectionlst").pullRefresh().endPullupToRefresh(false);
			}
		}
		
		function collectionLstTem($info, $num){
			var $collectionHtml = 
			'<div style="margin: 10px 20px 10px 20px;">'
			+	'<div style="display: flex;">'
			+		'<span style="display: block; width: 15%;">'
			+			'<img src="../../img/grzx/new/touxiang_06.png" style="width: 40px;"/>'
			+		'</span>'
			+		'<span style="width: 85%; display: block; margin-top: 7px; margin-left: 10px;">'
			+			'<span style="display: block; font-size: 13px; color: #909090; float: left;">小辣椒</span>'
			+			'<span style="display: block; float: right; margin-right: 10px; color: #909090; font-size: 11px;">2017-01-11</span>'
			+		'</span>'
			+	'</div>'
			+	'<div style="display: flex; margin-top: 5px;">'
			+		'<span style="display: block;"><img src="../../img/icon/wztest.png" style="width: 60px;" /></span>'
			+		'<span style="display: block; color: #616161; font-size: 14px; margin-left: 12px;">收藏文章标题收藏文章标题收藏文章标题</span>'
			+	'</div>'
			+'</div>'
			+'<hr style="width: 100%; height: 6px; background-color: #e6e6e6;" />';
			return $collectionHtml;
		}
	</script>
</html>
